#include "FreeWayCliSender.h"
#include "FreeWayEntry.h"
void FreeWayCliSender::svc()
{

    LOG(INFO) << "FreeWaySender(Client) thread joined";
     while(run)
     {
         if(!msgQueue.empty()){
                msgStruct1 * msgptr = msgQueue.front();

                 LOG(INFO) << "Send" << msgptr->msgPtr;

                entry->fwSend2Server(msgptr->msgPtr, msgptr->len);






                //send success


                //pop message
                lock(0);

                msgQueue.pop();

                unlock(0);
         }
         else{
            sleep(1);
         }


     }
}
